package com.affablebeans.model.entity;

import java.util.Date;

/**
 *
 * @author Bora SAYINER
 * @since Jan 25, 2015 6:09:13 PM
 * @version 1.0
 */
public class Product extends AbstractEntity {

	private String name;
	private double price;
	private String description;
	private Date lastUpdate;
	private Category category;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	@Override
	public String toString() {
		return "Product [name=" + name + ", price=" + price + ", description=" + description + ", lastUpdate=" + lastUpdate + ", category=" + category + "]";
	}

}
